<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
/** get browser name */
String agent = request.getHeader("USER-AGENT");
String browserName="None";
if (null != agent && -1 != agent.indexOf("MSIE 9.0")) { 
	browserName="IE9";
} else if (null != agent && -1 != agent.indexOf("MSIE 8.0")) { 
	browserName="IE8";
} else if (null != agent && -1 != agent.indexOf("MSIE 7.0")) { 
	browserName="IE7";
} else if (null != agent && -1 != agent.indexOf("MSIE 6.0")) { 
	browserName="IE6";
} else if (null != agent && -1 != agent.indexOf("MSIE")) { 
	browserName="IE";
} else if (null != agent && -1 != agent.indexOf("Firefox")) { 
	browserName="Firefox";
} else if (null != agent && -1 != agent.indexOf("Chrome")) { 
	browserName="Chrome";
} else if (null != agent && -1 != agent.indexOf("Safari")) { 
	browserName="Safari";
} else if (null != agent && -1 != agent.indexOf("Opera")) { 
	browserName="Opera";
}
String path = request.getContextPath();
%>

<script type="text/javascript" src="<%=path%>/js/common/common.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery/jquery-1.8.3.min.js"></script>

<c:set var="ctx" value="<%=path%>"></c:set>
<c:set var="browser" value="<%=browserName%>"></c:set>